import request from '@/utils/request'

// 查询不良事件字典列表
export function listBadevent(query) {
  return request({
    url: '/manage/badevent/list',
    method: 'get',
    params: query
  })
}

// 查询不良事件字典详细
export function getBadevent(badId) {
  return request({
    url: '/manage/badevent/' + badId,
    method: 'get'
  })
}

// 新增不良事件字典
export function addBadevent(data) {
  return request({
    url: '/manage/badevent',
    method: 'post',
    data: data
  })
}

// 修改不良事件字典
export function updateBadevent(data) {
  return request({
    url: '/manage/badevent',
    method: 'put',
    data: data
  })
}

// 删除不良事件字典
export function delBadevent(badId) {
  return request({
    url: '/manage/badevent/' + badId,
    method: 'delete'
  })
}
